import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import h123 from '@/components/123'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      children:[
      {
        path:'/123',
        component:h123
      }
      ]
    },
    // {
    //   path: '/123',
    //   name: 'h123',
    //   component: h123
    // }
  ]
})
